package com.ry.est.dao;

import com.ry.est.entity.Brand;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandDao {
    int deleteByPrimaryKey(Long id);

    int insert(Brand record);

    int insertSelective(Brand record);

    Brand selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Brand record);

    int updateByPrimaryKey(Brand record);

    /**
     * 根据很多id查询很多品牌
     * @param
     * @return
     */
    List<Brand> listBrandByIdsAndStatus(@Param("ids") List<Long> ids, @Param("status") Integer status);
}